import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/member/user/list',
    method: 'post',
    params: query
  })
}

export function listAddress(query) {
  return request({
    url: '/mall/address/list',
    method: 'post',
    params: query
  })
}

export function listCollect(query) {
  return request({
    url: '/mall/collect/list',
    method: 'post',
    params: query
  })
}

export function listFeedback(query) {
  return request({
    url: '/member/feedback/list',
    method: 'post',
    params: query
  })
}

export function listFootprint(query) {
  return request({
    url: '/mall/footprint/list',
    method: 'post',
    params: query
  })
}

export function listHistory(query) {
  return request({
    url: '/mall/search-history/list',
    method: 'post',
    params: query
  })
}

export function view(id) {
  return request({
    url: '/member/user/submit',
    method: 'post',
    params: { id: id }
  })
}

export function info() {
  return request({
    url: '/member/user/info',
    method: 'post'
  })
}

export function add(data) {
  return request({
    url: '/member/user/add',
    method: 'post',
    data
  })
}
